package com.xinhua.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xinhua.entity.Student;
import com.xinhua.repository.StudentRep;

@Component
public class StudentService {
	@Autowired
	private StudentRep studentRep;
	
	public List<Student> getStudent(){
		return (List<Student>) studentRep.findAll();
	}
}
